<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>进度查询</title>
    
	<%@ include file="/main/main_css.jsp" %>
    <%@ include file="/main/main_js.jsp" %>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">

  </head>
  
  <body>
    <div class="all-wrapper">
        <div class="row com-header text-center">
            <span>鹰潭市行政服务中心</span>
        </div>
        <div class="row main-content process-query">
            <div class="col-md-24" >
                <div class="time-count pull-right">
                    <span>剩余</span>
                    <span id="time" class="text-red"></span>
                    <span>秒</span>
                </div>
            </div>
            <div class="col-md-24">
                <h1>办件进度查询</h1>
            </div>
            <form class="form-horizontal">
                <div class="row">
                   <!--  <div class="col-md-24">
                        <div class="form-group form-group-lg">
                            <div class="col-md-12 col-md-offset-3">
                                <input id="searchCode" onclick="imeOpen();" type="text" class="form-control input-lg" placeholder="请输入查询码">
                            </div>
                            <div class="col-md-6 col-md-offset-3">
                            	<button onclick="searchQuerCode();" class="btn btn-primary btn-lg" style="height:60px;width:120px;" type="button">查询</button>
                            </div>
                        </div>
                    </div> -->
	                <div class="col-md-12 pic-w">
	                  	<a href="scanQRCode?service=MyBussinessController/getBusinessInfo">
		                    <div class="image-wrapper">
		                        <img src="static/image/process-query/check_img_bar.png" alt="">
		                    </div>
		                    <span class="tip">二维码查询</span>
		                </a>
	                </div>
	                <div class="col-md-12 pic-w">
	                 	<a href="MyBussinessController/queryBussinessList">
		                    <div class="image-wrapper">
		                        <img src="static/image/process-query/check_img_idcard.png" alt="">
		                    </div>
		                    <span class="tip">身份证查询</span>
		                </a>
	                </div>
                </div>
            </form>
        </div>
        <div class="row footer">
            <a class="btn btn-success btn-lg" href="loginOut" role="button"><i class="fa fa-reply"></i>返回首页</a>
        </div>
        <form id="loginOut" action="loginOut"></form>
    </div>
    <script>
    	var count = 119;
    	function countdown(){
    		$("#time").text(count);
    		if(count > 0){
    			window.setTimeout("countdown()",1000);
    			count --;
    		}else{
    			//跳转到首页
    			$("#loginOut").submit();
    		}
    	}
    	
    	//打开写字板
    	function imeOpen() {
		    var info = document.getElementById("searchCode").value;
		    var test = { 'info': info, 'ispassword': 0 };
		    var data = JSON.stringify(test);
		    send_command(
		        "imewrite",
		        data,
		        function (receivedData) {
		            var data = JSON.parse(receivedData);
		            document.getElementById(eleID).value = data.msg;
		        }
		    );
		}
    	
    	//通过查询码查询
    	function searchQuerCode(){
    		var code = $("#searchCode").val();
    	}
    	
    	countdown();
    	var winH = $(document).height();
        var mainH = winH -160;
        $('.main-content').height(mainH);
    </script>
  </body>
</html>
